package com.evony.common.beans 
{
    import flash.events.*;
    import mx.events.*;
    
    public class BuildingQueueBean extends Object
    {
        public function BuildingQueueBean(arg1:Object=null)
        {
            super();
            var loc1:*=0;
            _bindingEventDispatcher = new flash.events.EventDispatcher(flash.events.IEventDispatcher(this));
            if (arg1 != null) 
            {
                if (arg1.costTime != null) 
                {
                    this.costTime = arg1.costTime;
                }
                if (arg1.id != null) 
                {
                    this.id = arg1.id;
                }
                if (arg1.level != null) 
                {
                    this.level = arg1.level;
                }
                if (arg1.name != null) 
                {
                    this.name = arg1.name;
                }
                if (arg1.positionId != null) 
                {
                    this.positionId = arg1.positionId;
                }
                if (arg1.queueType != null) 
                {
                    this.queueType = arg1.queueType;
                }
                if (arg1.status != null) 
                {
                    this.status = arg1.status;
                }
                if (arg1.typeId != null) 
                {
                    this.typeId = arg1.typeId;
                }
            }
            return;
        }

        public function toDebugString(arg1:String=""):String
        {
            var loc1:*=0;
            var loc2:*="";
            loc2 = loc2 + (arg1 + "costTime = " + this.costTime + "\n");
            loc2 = loc2 + (arg1 + "id = " + this.id + "\n");
            loc2 = loc2 + (arg1 + "level = " + this.level + "\n");
            loc2 = loc2 + (arg1 + "name = " + this.name + "\n");
            loc2 = loc2 + (arg1 + "positionId = " + this.positionId + "\n");
            loc2 = loc2 + (arg1 + "queueType = " + this.queueType + "\n");
            loc2 = loc2 + (arg1 + "status = " + this.status + "\n");
            loc2 = loc2 + (arg1 + "typeId = " + this.typeId + "\n");
            return loc2;
        }

        public function copyTo(arg1:com.evony.common.beans.BuildingQueueBean):void
        {
            arg1.costTime = this.costTime;
            arg1.id = this.id;
            arg1.level = this.level;
            arg1.name = this.name;
            arg1.positionId = this.positionId;
            arg1.queueType = this.queueType;
            arg1.status = this.status;
            arg1.typeId = this.typeId;
            return;
        }

        public function toObject():Object
        {
            var loc1:*=new Object();
            loc1.costTime = this.costTime;
            loc1.id = this.id;
            loc1.level = this.level;
            loc1.name = this.name;
            loc1.positionId = this.positionId;
            loc1.queueType = this.queueType;
            loc1.status = this.status;
            loc1.typeId = this.typeId;
            return loc1;
        }

        [Bindable]
        public var queueType:int;

        [Bindable]
        public var id:int;

        [Bindable]
        public var level:int;

        [Bindable]
        public var name:String;

        [Bindable]
        public var status:int;

        [Bindable]
        public var costTime:Number;

        [Bindable]
        public var positionId:int;

        [Bindable]
        public var typeId:int;
    }
}
